google.load('visualization', '1.0', {'packages':['corechart']}); google.setOnLoadCallback(function(){ var data = new google.visualization.DataTable(); data.addColumn('string', '日'); data.addColumn('number', 'DL数'); data.addColumn('number', 'Googleセルラン'); data.addColumn('number', 'iOSセルラン'); data.addColumn({type:'string', role:'annotation'}); data.addColumn({type:'string', role:'annotationText'}); data.addRows([ ['2024-02-24',21820051,null,null,null,null], ['2024-02-25',21827550,null,null,null,null], ['2024-02-26',21843184,null,null,null,null], ['2024-02-27',21843184,null,null,null,null], ['2024-02-28',21851001,null,null,null,null], ['2024-02-29',21856260,null,null,null,null], ['2024-03-01',21860739,null,null,null,null], ['2024-03-02',21864792,null,null,null,null], ['2024-03-03',21870809,null,null,null,null], ['2024-03-04',21875013,null,null,null,null], ['2024-03-05',21883290,null,null,null,null], ['2024-03-06',21887653,null,null,null,null], ['2024-03-07',21895055,null,null,null,null], ['2024-03-08',21899847,null,null,null,null], ['2024-03-09',21904783,null,null,null,null], ['2024-03-10',21917029,null,null,null,null], ['2024-03-11',21923601,null,null,null,null], ['2024-03-12',21928694,null,null,null,null], ['2024-03-13',21934277,null,null,null,null], ['2024-03-14',21934277,null,null,null,null], ['2024-03-15',21934277,null,null,null,null], ['2024-03-16',21951201,null,null,null,null], ['2024-03-17',21957661,null,null,null,null], ['2024-03-18',21964315,null,null,null,null], ['2024-03-19',21971486,null,null,null,null], ['2024-03-20',21978671,null,null,null,null], ['2024-03-21',21984994,null,null,null,null], ['2024-03-22',21993980,null,null,null,null], ['2024-03-23',22000701,null,null,null,null], ['2024-03-24',22007916,null,null,null,null], ['2024-03-25',22012315,null,null,null,null], ['2024-03-26',22020827,null,null,null,null], ['2024-03-27',22020827,null,null,null,null], ['2024-03-28',22032574,null,null,null,null], ['2024-03-29',22039036,null,null,null,null], ['2024-03-30',22039036,null,null,null,null], ['2024-03-31',22057308,null,null,null,null], ['2024-04-01',22057308,null,null,null,null], ['2024-04-02',22057308,null,null,null,null], ['2024-04-03',22057308,null,null,null,null], ['2024-04-04',22057308,null,null,null,null], ['2024-04-05',22095919,null,null,null,null], ['2024-04-06',22102888,null,null,null,null], ['2024-04-07',22112387,null,null,null,null], ['2024-04-08',22120195,null,null,null,null], ['2024-04-09',22128347,null,null,null,null], ['2024-04-10',22135231,null,null,null,null], ['2024-04-11',22145393,null,null,null,null], ['2024-04-12',22152543,null,null,null,null], ['2024-04-13',22156704,null,null,null,null], ['2024-04-14',22164596,null,null,null,null], ['2024-04-15',22173095,null,null,null,null], ['2024-04-16',22181900,null,null,null,null], ['2024-04-17',22188526,null,null,null,null], ['2024-04-18',22195632,null,null,null,null], ['2024-04-19',22203351,null,null,null,null], ['2024-04-20',22217023,null,null,null,null], ['2024-04-21',22225491,null,null,null,null], ['2024-04-22',22232484,null,null,null,null], ['2024-04-23',22239026,null,null,null,null], ['2024-04-24',22239026,null,null,null,null] ]); var options = { chartArea: {'width':'85%', 'height':'65%', 'left':60 }, 'pointSize': 3, legend: {position: 'top' }, vAxes:[ {direction:1}, {direction:-1,viewWindow:{min:0,max:0}} ], series: { 0:{ type: 'bars', color: 'skyblue', targetAxisIndex: 0, }, 1:{ type: 'line', color: 'seagreen', targetAxisIndex: 1, }, 2:{ type: 'line', color: 'red', targetAxisIndex: 1, }, }, tooltip: { trigger: 'both' }, focusTarget: 'category', colors:['#2980b9','#e74c3c'] }; var chart = new google.visualization.ComboChart(document.getElementById('graphField')); chart.draw(data, options); google.visualization.events.addListener(chart, 'click', function() { if(chart.getSelection()[0]){ chart.setSelection(null) } }); });